# -*- coding: utf-8 -*-
# @Time    : 2022/5/19 09:08
# @Author  : zyw
# @Email   : panda_kings@163.com
# @File    : migrate.py 迁移脚本文件
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

from main import app
from common.models import db
from common.models.user import *
from common.models.course import *
from common.models.orders import *
manage = Manager(app)
migrate = Migrate(app,db)
manage.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manage.run()












